import App from './App'
// import 'normalize.css'
import http  from './utils/request.js'
import link  from './utils/link.js'
import message  from './utils/message.js'
import user  from './utils/user.js'
import cache  from './utils/cache.js'
import uView from '@/uni_modules/uview-ui'
import share from './utils/share.js'
// #ifndef VUE3
import Vue from 'vue'
// Vue.prototype.$store = store
Vue.prototype.$http = http
Vue.prototype.$link = link
Vue.prototype.$message = message
Vue.prototype.$user = user
Vue.prototype.$cache = cache
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
    ...App
})
//全局添加微信小程序右上角分享
// #ifdef MP-WEIXIN
const $x = {}; 
Vue.prototype.$x = $x;
let wxMpShare = {
	onShow:share.onShow,
	onShareAppMessage:share.onShareAppMessage,
	onShareTimeline:share.onShareTimeline,
}
Vue.mixin(wxMpShare);
// #endif
Vue.use(uView)
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif